/**
 * 
 */
package net.loyintean.pearlshell.logcenter.model.impl;

import net.loyintean.pearlshell.logcenter.model.ILogModel;


/**
 * @author Administrator
 * 
 */
class LogModelImpl implements ILogModel {

	/**
	 * 
	 */
	private static final long serialVersionUID = 8794439296524348164L;

	@Deprecated
	private String threadFlag;

	private String message;

	private String systemName;

	private String className;

	private String methodName;

	private String lineNumber;

	private String threadName;

	private String level;

	private long timeStamp;

	LogModelImpl() {
	}

	/**
	 * @return the threadFlag
	 */
	public String getThreadFlag() {
		return threadFlag;
	}

	/**
	 * @return the message
	 */
	@Override
	public String getMessage() {
		return message;
	}

	/**
	 * @return the systermName
	 */
	@Override
	public String getSystemName() {
		return systemName;
	}

	/**
	 * @return the className
	 */
	@Override
	public String getClassName() {
		return className;
	}

	/**
	 * @return the methodName
	 */
	@Override
	public String getMethodName() {
		return methodName;
	}

	/**
	 * @return the lineNumber
	 */
	@Override
	public String getLineNumber() {
		return lineNumber;
	}

	/**
	 * @return the threadName
	 */
	@Override
	public String getThreadName() {
		return threadName;
	}

	/**
	 * @return the level
	 */
	@Override
	public String getLevel() {
		return level;
	}

	/**
	 * @return the timeStamp
	 */
	@Override
	public long getTimeStamp() {
		return timeStamp;
	}

	/**
	 * @param threadFlag
	 *            the threadFlag to set
	 */
	public void setThreadFlag(String threadFlag) {
		this.threadFlag = threadFlag;
	}

	/**
	 * @param message
	 *            the message to set
	 */
	void setMessage(String message) {
		this.message = message;
	}

	/**
	 * @param systermName
	 *            the systermName to set
	 */
	void setSystermName(String systemName) {
		this.systemName = systemName;
	}

	/**
	 * @param className
	 *            the className to set
	 */
	void setClassName(String className) {
		this.className = className;
	}

	/**
	 * @param methodName
	 *            the methodName to set
	 */
	void setMethodName(String methodName) {
		this.methodName = methodName;
	}

	/**
	 * @param lineNumber
	 *            the lineNumber to set
	 */
	void setLineNumber(String lineNumber) {
		this.lineNumber = lineNumber;
	}

	/**
	 * @param threadName
	 *            the threadName to set
	 */
	void setThreadName(String threadName) {
		this.threadName = threadName;
	}

	/**
	 * @param level
	 *            the level to set
	 */
	void setLevel(String level) {
		this.level = level;
	}

	/**
	 * @param timeStamp
	 *            the timeStamp to set
	 */
	void setTimeStamp(long timeStamp) {
		this.timeStamp = timeStamp;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("LogModelImpl [");
		if (threadFlag != null) {
			builder.append("threadFlag=");
			builder.append(threadFlag);
			builder.append(", ");
		}
		if (message != null) {
			builder.append("message=");
			builder.append(message);
			builder.append(", ");
		}
		if (systemName != null) {
			builder.append("systemName=");
			builder.append(systemName);
			builder.append(", ");
		}
		if (className != null) {
			builder.append("className=");
			builder.append(className);
			builder.append(", ");
		}
		if (methodName != null) {
			builder.append("methodName=");
			builder.append(methodName);
			builder.append(", ");
		}
		if (lineNumber != null) {
			builder.append("lineNumber=");
			builder.append(lineNumber);
			builder.append(", ");
		}
		if (threadName != null) {
			builder.append("threadName=");
			builder.append(threadName);
			builder.append(", ");
		}
		if (level != null) {
			builder.append("level=");
			builder.append(level);
			builder.append(", ");
		}
		builder.append("timeStamp=");
		builder.append(timeStamp);
		builder.append("]");
		return builder.toString();
	}
}
